package com.ezbuy.common.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * ezbuy 2018/12/1 下午4:33
 */
public class EnumType {

    private ProtoFile file;
    public String name;
    public List<String> values = new ArrayList<>();
    public String packageName;

    public ProtoFile getFile() {
        return file;
    }

    public void setFile(ProtoFile file) {
        this.file = file;
        this.packageName=file.getPackageName();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getValues() {
        return values;
    }

    public void setValues(List<String> values) {
        this.values = values;
    }

    public void addValue(String value) {
        this.values.add(value);
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    @Override
    public String toString() {
        return "EnumType{" +
                "name='" + name + '\'' +
                ", values=" + values +
                ", packageName='" + packageName + '\'' +
                '}';
    }
}
